<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:rich="http://richfaces.org/rich">

    <h:form>
        <rich:panel>
            <h:panelGrid columns="2">
                <h:selectOneRadio value="#{contractInitBean.type}">
                    <f:selectItem itemLabel="主合同" itemValue="0"/>
                    <f:selectItem itemLabel="补充合同合同" itemValue="1"/>
                </h:selectOneRadio>
                <h:commandButton value="确定" action="#{contractInitBean.toggle}"/>
            </h:panelGrid>
        </rich:panel>
    </h:form>

    <ui:include src="#{contractInitBean.url}"/>

</ui:composition>